<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<div class="leftModel">
	<div class="head">${parMenu.name }</div>
	<!-- class为shield-menus，容器，里面的菜单样式为shield-menu -->
	<div class="content shield-menus"> 
		<div class="subwrap">
<c:forEach var="menu" items="${menus }">
	<!-- 有下级，三级菜单 -->
	<c:if test="${not empty menu.childMenus }">
			<h4 class="sub_title">${menu.name }</h4>
			<ul class="menu">
		<c:forEach var="secondMenu" items="${menu.childMenus }">
				<!-- data-rel-type为以iframe方式打开 -->
				<li id="${secondMenu.pageId }" class="${menu.target == 'dialog'?'shieldDialog ':'shield-menu '}  ${secondMenu.pageClass }" data-url="${secondMenu.href }" viewTitle="${menu.name }"
				<c:if test="${secondMenu.target == 'iframe' }">data-rel-type="iframe"</c:if> ><span>${secondMenu.name }</span></li>
		</c:forEach>
			</ul>
	</c:if>
	<!-- 没有下级 -->
	<c:if test="${empty menu.childMenus }">
			<ul class="menu">
				<!-- data-rel-type为以iframe方式打开 -->
				<li id="${menu.pageId }" class="${menu.target == 'dialog'?'shieldDialog ':'shield-menu '}  ${menu.pageClass }" data-url="${menu.href }" viewTitle="${menu.name }"
				<c:if test="${menu.target == 'iframe' }">data-rel-type="iframe"</c:if> ><span>${menu.name }</span></li>
			</ul>
	</c:if>
</c:forEach>
		</div>
	</div>
</div>
